package Program;

public class BasePlusSalesEmployee extends SalesEmployee {
    private float baseSalary;

    public BasePlusSalesEmployee(String name, int birthday, float monthlySales, float commissionRate, int baseSalary) {
        super(name, birthday, monthlySales, commissionRate);
        this.baseSalary = baseSalary;
    }
    public float countSalary() {
        return super.countSalary() + baseSalary;
    }

    public float getBaseSalary() {
        return baseSalary;
    }

    public void setBaseSalary(float baseSalary) {
        this.baseSalary = baseSalary;
    }
}
